#include <libavcodec/avcodec.h>
#include "codec_utils.h"

const char *get_codec_name(enum CodecType codec) {
    switch (codec) {

        case ENCODER_AAC:
            return "aac";

        case ENCODER_FDKAAC:
            return "libfdk_aac";

        case ENCODER_X264:
            return "libx264";

        case ENCODER_OPENH264:
            return "libopenh264";

        case ENCODER_MJPEG:
            return "mjpeg";

        case DECODER_AAC:
            return "aac";

        case DECODER_FDKAAC:
            return "libfdk_aac";

        case DECODER_H264:
            return "h264";

        case DECODER_OPENH264:
            return "libopenh264";

        default:
            return NULL;
    }
}